<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="checkAuth.jsp" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Products</title>
</head>
<body>
	<jsp:include page="menu/menu.jsp" />
	<%@ taglib prefix="s" uri="/struts-tags"%>

	<div id="content">
		<form name="viewProducts" id="viewProductsForm" action="viewProducts"
			method="post" accept-charset="utf-8">
			<table>
				<thead></thead>
				<tbody>
					<tr>
						<td><label for="name">Name:</label></td>
						<td><input type="text" name="name" placeholder="product name"
							value="<s:property value="name" />"></td>
					</tr>
					<tr>
						<td><label for="description">Description:</label></td>
						<td><input type="text" name="description"
							placeholder="product description"
							value="<s:property value="description" />"></td>
					</tr>
					<tr>
						<td></td>
						<td><input type="submit" value="Apply filters"></td>
					</tr>
				</tbody>
			</table>
		</form>

		<table>
			<thead>
				<tr>
					<th>Product</th>
					<th>Description</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="products" status="productsStatus">
					<tr>
						<td><s:property value="name" /></td>
						<td><s:property value="description" /></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>
</body>
</html>